package com.marvels.approve.mqueues.service;

import java.util.List;

import com.marvels.approve.common.dto.LoanApplyContactInfoDTO;
import com.marvels.approve.loan.dto.McamAcLoanApplyBdInfo;
import com.marvels.approve.loan.dto.McamAcLoanApplyImageInfo;
import com.marvels.approve.loan.dto.McamLoanApplyInfoDTO;
import com.marvels.common.exception.MarvelsBusinessException;

/**数据同步服务
 * @author 何杰
 * 2018年5月9日
 */
public interface ILoanApplyDataSynchronizeService {
	
	/**同步进件申请数据
	 * @author 何杰
	 * 2018年5月9日
	 * @param loanId
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McamLoanApplyInfoDTO synchronizeLoanApplyInfo(String loanId) throws MarvelsBusinessException;
	
	/**同步贷款保单数据
	 * @author 何杰
	 * 2018年5月9日
	 * @param loanId
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public List<McamAcLoanApplyBdInfo> synchronizeInsurancePolicy(String loanId)throws MarvelsBusinessException;
	
	/**同步影像文件
	 * @author 何杰
	 * 2018年5月14日
	 * @param loanId
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public List<McamAcLoanApplyImageInfo> synchronizeAttachment(String loanId)throws MarvelsBusinessException;
	/**
	 * 同步联系人
	 * @param loanId
	 * @return
	 */
	public List<LoanApplyContactInfoDTO> synchronizeLinkman(String loanId)throws MarvelsBusinessException;
	
}
